package com.demo.eureka.eurekaribbonclient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class EurekaRibbonController {
    @Resource
    private RibbonService ribbonService;

    @GetMapping("/hi")
    public String hi(@RequestParam(required = false, defaultValue = "xiongyan") String name) {
        return ribbonService.hi(name);
    }
}
